class Administrate < ActiveRecord::Base

	belongs_to :entity
	belongs_to :group, :class_name => 'Group', :foreign_key => 'group_id'
	
	validates :entity_id, :presence => true
	validates :group_id, :presence => true
	
end